package com.css.zfzx.data.thirdary.jgReconciliation.repository.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * @Description: data
 * @Author: lhl
 * @CreateDate: 2021/4/27 15:51
 */
@Entity
@Table(name = "sjtgf_jghsh_dz_sjdzb", schema = "base", catalog = "")
public class SjtgfJghshYjSjdzbEntity {
    private long id;
    private String bmc;
    private String fssj;
    private Integer lch;
    private String sjpch;
    private Integer sjts;
    private Integer zdzt;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "bmc")
    public String getBmc() {
        return bmc;
    }

    public void setBmc(String bmc) {
        this.bmc = bmc;
    }

    @Basic
    @Column(name = "fssj")
    public String getFssj() {
        return fssj;
    }

    public void setFssj(String fssj) {
        this.fssj = fssj;
    }

    @Basic
    @Column(name = "lch")
    public Integer getLch() {
        return lch;
    }

    public void setLch(Integer lch) {
        this.lch = lch;
    }

    @Basic
    @Column(name = "sjpch")
    public String getSjpch() {
        return sjpch;
    }

    public void setSjpch(String sjpch) {
        this.sjpch = sjpch;
    }

    @Basic
    @Column(name = "sjts")
    public Integer getSjts() {
        return sjts;
    }

    public void setSjts(Integer sjts) {
        this.sjts = sjts;
    }

    @Basic
    @Column(name = "zdzt")
    public Integer getZdzt() {
        return zdzt;
    }

    public void setZdzt(Integer zdzt) {
        this.zdzt = zdzt;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SjtgfJghshYjSjdzbEntity that = (SjtgfJghshYjSjdzbEntity) o;
        return id == that.id &&
                Objects.equals(bmc, that.bmc) &&
                Objects.equals(fssj, that.fssj) &&
                Objects.equals(lch, that.lch) &&
                Objects.equals(sjpch, that.sjpch) &&
                Objects.equals(sjts, that.sjts) &&
                Objects.equals(zdzt, that.zdzt);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, bmc, fssj, lch, sjpch, sjts, zdzt);
    }
}
